package com.example.clxy.service;

import com.example.clxy.result.WebRestResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author weichong
 * date 2020-08-07
 * @Description:
 */
public interface FileService {

    WebRestResult upload( MultipartFile file,String filepath,String filename);

    WebRestResult uploadStudentYxreport ( MultipartFile file,String scheduleid,String studentid);

    WebRestResult uploadStudentSycard( MultipartFile file,String scheduleid,String studentid);

    WebRestResult uploadStudentSyreport( MultipartFile file,String scheduleid,String studentid);

    WebRestResult uploadTeacherAvatar(MultipartFile file,String teacherid);

    WebRestResult importExperiment(MultipartFile file);

    WebRestResult importStudent(MultipartFile file);

    WebRestResult importTeacher(MultipartFile file);

    WebRestResult importSycourse(MultipartFile file);

    WebRestResult importCourse(MultipartFile file);

    WebRestResult importPlatformQuestion(MultipartFile file);

    WebRestResult importExperimentQuestion(MultipartFile file);

    WebRestResult importScore(MultipartFile file,String scheduleid);

    void exportStudent(HttpServletResponse response, String grade, String classid);

    void downloadPlatformQuestion(HttpServletResponse response);

    void downloadExperimentQuestion(HttpServletResponse response);

    void downloadScore(HttpServletResponse response,String scheduleid);

    void downloadTeacher(HttpServletResponse response);

    void downloadllCourse(HttpServletResponse response);

    void downloadgxExperiment(HttpServletResponse response);

    void downloadsyCourse(HttpServletResponse response);

    void downloadStudent(HttpServletResponse response);

    void downloadExperiment(HttpServletResponse response);
}
